/*
 * SmartCam master processor library
 * Trace generation.
 */

#ifdef __cplusplus
extern "C" {
#endif

#include "scu.h"

typedef struct sct_conditional_s
{
  int type, line, parent, condition, parent_condition, count;

  table_t conditions;
} sct_conditional_t;

typedef struct sct_line_s
{
  int line, type, parent, id;
} sct_line_t;

void scTraInit(void);
void scTraWrite(void);

int  scTraGetCondition(int line);
void scTraUpdateCondition(int type, int line, int parent, int condition);

#ifdef __cplusplus
}
#endif
